package net.lab1024.sa.admin.module.business.bjd.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import net.lab1024.sa.admin.module.business.bjd.domain.form.DollPhotosQueryForm;
import net.lab1024.sa.admin.module.business.bjd.domain.vo.DollPhotosVo;
import net.lab1024.sa.admin.module.business.bjd.domain.vo.DollVO;
import net.lab1024.sa.admin.module.business.bjd.mapper.DollPhotosMapper;
import net.lab1024.sa.base.common.domain.PageResult;
import net.lab1024.sa.base.common.util.SmartPageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author guolong.zhang
 * @date 2025/02/09 09:35
 **/
@Service
@Slf4j
public class DollPhotosService {

    @Autowired
    private DollPhotosMapper dollPhotosMapper;
    public PageResult<DollPhotosVo> queryPage(DollPhotosQueryForm queryForm) {
        Page<?> page = SmartPageUtil.convert2PageQuery(queryForm);
        List<DollPhotosVo> list = dollPhotosMapper.pageList(page, queryForm);
        return SmartPageUtil.convert2PageResult(page, list);
    }
}
